Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update destination plugin to class #30

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

liuyang1520
Copy link
Collaborator

Summary

Current DestinationPlugin is a protocol, but it cannot hold the timeline property, so if user writes a new DestinationPlugin, needs to define a timeline as well, which shouldn't be needed.

To make it work, change DestinationPlugin to a class, and due to Swift's PWT (https://stackoverflow.com/a/44706021), we provide a common implementation for setup and execute, which can be override to call.

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

@liuyang1520 liuyang1520 merged commit 705e61f into main Dec 20, 2022
@liuyang1520 liuyang1520 deleted the update-destination-plugin branch December 20, 2022 22:01
github-actions bot pushed a commit that referenced this pull request Dec 20, 2022
# [0.3.0](v0.2.0...v0.3.0) (2022-12-20)

### Features

* update destination plugin to class ([#30](#30)) ([705e61f](705e61f))
@github-actions
Copy link

🎉 This PR is included in version 0.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants